import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@/assets/style.css"; // 全局css
//全局引入swiper
import VAS from "vue-awesome-swiper";
Vue.use(VAS);
import "swiper/css/swiper.css";
//全局引入axios
import axios from "axios";
import VueAxios from "vue-axios";
axios.defaults.baseURL = "http://127.0.0.1:8080/v1/index.php/";
Vue.use(VueAxios, axios);
// 引入ElementUI组件库,引入后即可在组件中使用ElementUI
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
